
 <!DOCTYPE HTML>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  
    <title>小程序开发月刊第11期（20191115） | Here. There.</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
    
    <meta name="author" content="被删">
    
    <meta name="description" content="这个月的新内容还不错噢~你值得拥有">
    
    
    
    
    <link rel="alternate" href="/atom.xml" title="Here. There." type="application/atom+xml">
    
    
    <link rel="icon" href="/img/favicon.ico">
    
    
    <link rel="apple-touch-icon" href="/img/pacman.jpg">
    <link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg">
    
    <link rel="stylesheet" href="/css/style.css">
    
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?3d902de4a19cf2bf179534ffd2dd7b7f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>

  <body>
    <header>
      <div>
		
			<div id="imglogo">
				<a href="/"><img src="/img/sun.png" alt="Here. There." title="Here. There."/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/" title="Here. There.">Here. There.</a></h1>
				<h2 class="blog-motto">Love ice cream. Love sunshine. Love life. Love the world. Love myself. Love you.</h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
			</a></div>
			<nav class="animated">
				<ul>
					
						<li><a href="/">首页</a></li>
					
						<li><a href="https://github.com/godbasin/godbasin.github.io">所有文章</a></li>
					
						<li><a href="/archives">归档</a></li>
					
						<li><a href="/categories">分类</a></li>
					
						<li><a href="https://godbasin.github.io/front-end-playground">前端游乐场</a></li>
					
						<li><a href="/about">关于我</a></li>
					
				</ul>
			</nav>			
</div>

    </header>
    <div id="container">
      <div id="main" class="post" itemscope itemprop="blogPost">
	<article itemprop="articleBody"> 
		<header class="article-info clearfix">
  <h1 itemprop="name">
    
      <a href="/2019/11/15/wxapp-latest-20191115/" title="小程序开发月刊第11期（20191115）" itemprop="url">小程序开发月刊第11期（20191115）</a>
  </h1>
  <p class="article-author">By
    
      <a href="https://godbasin.github.io" title="被删">被删</a>
    </p>
  <p class="article-time">
    <time datetime="2019-11-15T15:00:15.000Z" itemprop="datePublished">2019-11-15</time>
    更新日期:<time datetime="2019-11-16T15:03:08.259Z" itemprop="dateModified">2019-11-16</time>
    
  </p>
</header>
	<div class="article-content">
		
		
		<div id="toc" class="toc-article">
			<strong class="toc-title">文章目录</strong>
		<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#小程序-latest"><span class="toc-number">1.</span> <span class="toc-text">小程序 latest</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#小程序能力"><span class="toc-number">1.1.</span> <span class="toc-text">小程序能力</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序·服务商订阅消息设置接口上线"><span class="toc-number">1.1.1.</span> <span class="toc-text">小程序·服务商订阅消息设置接口上线</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#同层渲染进度同步"><span class="toc-number">1.1.2.</span> <span class="toc-text">同层渲染进度同步</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序实时日志功能更新"><span class="toc-number">1.1.3.</span> <span class="toc-text">小程序实时日志功能更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#OCR-能力更新"><span class="toc-number">1.1.4.</span> <span class="toc-text">OCR 能力更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#更新日志"><span class="toc-number">1.1.5.</span> <span class="toc-text">更新日志</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#小程序·云开发"><span class="toc-number">1.2.</span> <span class="toc-text">小程序·云开发</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序·云开发新增高级日志服务"><span class="toc-number">1.2.1.</span> <span class="toc-text">小程序·云开发新增高级日志服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#云开发代金券"><span class="toc-number">1.2.2.</span> <span class="toc-text">云开发代金券</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#云函数优化"><span class="toc-number">1.2.3.</span> <span class="toc-text">云函数优化</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开发者工具"><span class="toc-number">1.3.</span> <span class="toc-text">开发者工具</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#微信开发者工具新增文档搜索功能"><span class="toc-number">1.3.1.</span> <span class="toc-text">微信开发者工具新增文档搜索功能</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#更多更新说明"><span class="toc-number">1.3.2.</span> <span class="toc-text">更多更新说明</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#小程序教程"><span class="toc-number">2.</span> <span class="toc-text">小程序教程</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#社区精选文章"><span class="toc-number">2.1.</span> <span class="toc-text">社区精选文章</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#最新踩坑-amp-amp-Tips"><span class="toc-number">2.2.</span> <span class="toc-text">最新踩坑 && Tips</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-安卓7-0-8内测版本白屏问题"><span class="toc-number">2.2.1.</span> <span class="toc-text">【同步踩坑信息】- 安卓7.0.8内测版本白屏问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-安卓wx-getStorage"><span class="toc-number">2.2.2.</span> <span class="toc-text">【同步踩坑信息】- 安卓wx.getStorage</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-小程序换行会导致多余空格"><span class="toc-number">2.2.3.</span> <span class="toc-text">【同步踩坑信息】- 小程序换行会导致多余空格</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步收集信息】-首页逻辑"><span class="toc-number">2.2.4.</span> <span class="toc-text">【同步收集信息】- 首页逻辑</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#结束语"><span class="toc-number">2.3.</span> <span class="toc-text">结束语</span></a></li></ol></li></ol>
		</div>
		
		<p>这个月的新内容还不错噢<del>~你值得拥有</del><br><a id="more"></a></p>
<h1 id="小程序-latest"><a href="#小程序-latest" class="headerlink" title="小程序 latest"></a>小程序 latest</h1><h2 id="小程序能力"><a href="#小程序能力" class="headerlink" title="小程序能力"></a>小程序能力</h2><h3 id="小程序·服务商订阅消息设置接口上线"><a href="#小程序·服务商订阅消息设置接口上线" class="headerlink" title="小程序·服务商订阅消息设置接口上线"></a>小程序·服务商订阅消息设置接口上线</h3><p>为便于服务商代小程序更快设置订阅消息，提高开发效率，降低沟通成本。 现在向服务商提供订阅消息设置接口，具体详见：<a href="https://developers.weixin.qq.com/community/develop/doc/000c8a142ac080094779976b550801" target="_blank" rel="external">《订阅消息设置》</a></p>
<h3 id="同层渲染进度同步"><a href="#同层渲染进度同步" class="headerlink" title="同层渲染进度同步"></a>同层渲染进度同步</h3><p>为了解决小程序原生组件存在的一些<a href="https://developers.weixin.qq.com/miniprogram/dev/component/native-component.html" target="_blank" rel="external">使用限制</a>，我们对原生组件引入了同层渲染。支持同层渲染的原生组件层级与非原生组件一致，可直接使用非原生组件（如 view、image）结合 z-index 对原生组件进行覆盖，而无需使用 cover-view 或 cover-image。此外，同层渲染的原生组件也可被放置在 scroll-view、swiper 或 movable-view 容器中。目前，以下组件已支持同层渲染：</p>
<table>
<thead>
<tr>
<th>支持同层渲染的原生组件</th>
<th>最低版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>video</td>
<td>v2.4.0</td>
</tr>
<tr>
<td>map</td>
<td>v2.7.0</td>
</tr>
<tr>
<td>canvas 2d（新接口）</td>
<td>v2.9.0</td>
</tr>
<tr>
<td>live-player</td>
<td>v2.9.1</td>
</tr>
<tr>
<td>live-pusher</td>
<td>v2.9.1</td>
</tr>
</tbody>
</table>
<p>其他原生组件（textarea、camera、webgl 及 input）也会在近期逐步支持同层渲染。</p>
<h3 id="小程序实时日志功能更新"><a href="#小程序实时日志功能更新" class="headerlink" title="小程序实时日志功能更新"></a>小程序实时日志功能更新</h3><ol>
<li>为满足第三方服务商和开发者分析日志的需求，小程序新增实时日志查询接口，开发者可通过实时日志查询接口查询小程序打印的实时日志。详情可查看<a href="https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/operation/operation.realtimelogSearch.html" target="_blank" rel="external">《实时日志查询接口》</a>和<a href="https://developers.weixin.qq.com/miniprogram/dev/extended/log/" target="_blank" rel="external">《实时日志开发文档》</a>。</li>
<li>每个小程序账号每天可打印的日志条数提升至500万条，日志保存天数提升至7天。</li>
</ol>
<h3 id="OCR-能力更新"><a href="#OCR-能力更新" class="headerlink" title="OCR 能力更新"></a>OCR 能力更新</h3><p>OCR 能力方面，有两处更新点。其一，是身份证 OCR 新增性别和民族字段的支持。其二，是身份证和银行卡 OCR去除了 type（拍照、扫描模式）字段，简化统一调用。新调用这两个接口不再需要 type 字段，而之前使用 type 字段的调用仍然继续兼容。详细介绍请参考<a href="https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/OCR.html" target="_blank" rel="external">OCR接口文档</a>。</p>
<h3 id="更新日志"><a href="#更新日志" class="headerlink" title="更新日志"></a>更新日志</h3><ul>
<li><a href="https://developers.weixin.qq.com/community/develop/doc/000c8a142ac080094779976b550801" target="_blank" rel="external">社区问题反馈以及功能优化更新（11.04-11.08）</a>  </li>
<li><a href="https://developers.weixin.qq.com/community/develop/doc/000c4e5f4fc080923569a391356c01" target="_blank" rel="external">社区问题反馈以及功能优化更新（10.21-10.25）</a>  </li>
<li><a href="https://developers.weixin.qq.com/community/develop/doc/0004c4e9dc408058b659da9bf56801" target="_blank" rel="external">社区问题反馈以及功能优化更新（10.14-10.18）</a>  </li>
<li><a href="https://developers.weixin.qq.com/community/develop/doc/000608bc8d46d0d7125941cb157801" target="_blank" rel="external">社区问题反馈以及功能优化更新（10.07-10.11）</a>  </li>
</ul>
<h2 id="小程序·云开发"><a href="#小程序·云开发" class="headerlink" title="小程序·云开发"></a>小程序·云开发</h2><blockquote>
<p>云开发峰会: 本次小程序云开发峰会的干货 PPT 已经发布在 <a href="http://km.oa.com/articles/show/429844?ts=1571884911" target="_blank" rel="external">KM</a> 中，大家可以去查看。</p>
</blockquote>
<h3 id="小程序·云开发新增高级日志服务"><a href="#小程序·云开发新增高级日志服务" class="headerlink" title="小程序·云开发新增高级日志服务"></a>小程序·云开发新增高级日志服务</h3><p>为方便开发者通过日志快速的发现和定位问题，小程序·云开发提供了高级日志服务。通过高级日志服务，开发者可以更加灵活地采集和检索日志，每条日志可最长存储30天。</p>
<ul>
<li>详细介绍请参考: <a href="https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/functions/logservice.html" target="_blank" rel="external">高级日志</a></li>
</ul>
<h3 id="云开发代金券"><a href="#云开发代金券" class="headerlink" title="云开发代金券"></a>云开发代金券</h3><p>为了惠及到更多的小程序开发者，云开发增加了代金券申请功能。达到一定 uv 的小程序可以申请专业版（104 元/月）或旗舰版（860 元/月）的代金券，申请成功后每月发放一张，持续12个月。获取的代金券可用于抵扣相应套餐的购买金额。</p>
<ul>
<li>功能介绍：<a href="https://developers.weixin.qq.com/miniprogram/dev/wxcloud/billing/voucher.html" target="_blank" rel="external">https://developers.weixin.qq.com/miniprogram/dev/wxcloud/billing/voucher.html</a></li>
<li>最新开发者工具：<a href="https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html" target="_blank" rel="external">https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html</a></li>
</ul>
<h3 id="云函数优化"><a href="#云函数优化" class="headerlink" title="云函数优化"></a>云函数优化</h3><p>10月11日 - 12日上线了1个优化点：对执行时间小于200ms的云函数请求进行同步化，链路耗时下降了75ms左右</p>
<h2 id="开发者工具"><a href="#开发者工具" class="headerlink" title="开发者工具"></a>开发者工具</h2><h3 id="微信开发者工具新增文档搜索功能"><a href="#微信开发者工具新增文档搜索功能" class="headerlink" title="微信开发者工具新增文档搜索功能"></a>微信开发者工具新增文档搜索功能</h3><p>微信开发者工具新增文档搜索功能，方便开发者在开发过程中查询相关开发文档。开发者可通过下载最新 Nightly 版本工具体验功能。</p>
<ul>
<li>详细介绍请参考: <a href="https://developers.weixin.qq.com/miniprogram/dev/devtools/search.html" target="_blank" rel="external">文档搜索</a></li>
</ul>
<h3 id="更多更新说明"><a href="#更多更新说明" class="headerlink" title="更多更新说明"></a>更多更新说明</h3><p>参考<a href="https://developers.weixin.qq.com/community/develop/doc/000aaef24f4ee0b36e59755895b801" target="_blank" rel="external">微信开发者工具稳定版 1.02.1910120 更新说明</a>，这期新增能力包括：</p>
<ol>
<li>本地编译时进行合并编译。  </li>
</ol>
<ul>
<li>本地编译时使用合并编译可以加快小程序加载的速度，通过【项目详情 - 本地设置 - 本地编译时进行合并编译】可以打开此功能</li>
</ul>
<ol>
<li>真机调试支持直接触发更新周期性缓存数据。  </li>
</ol>
<ul>
<li>开发者工具【设置 - 通用设置 - 启用 PC 端自动预览】，可以将开发版小程序通过自动预览推送到同登录态的 PC 微信上</li>
</ul>
<ol>
<li>自动真机调试。  </li>
</ol>
<ul>
<li>增加自动真机调试功能，减少真机调试扫码的交互</li>
</ul>
<ol>
<li>使用测试号进行多帐号调试。</li>
</ol>
<ul>
<li>在【菜单 - 工具 - 多帐号调试】，可以打开多帐号调试帐号管理面板</li>
<li>本次为所有 appid 添加了 4 个测试帐号，可以使用测试号进行多帐号调试</li>
</ul>
<ol>
<li>支持多线程 worker 的单步调试。</li>
</ol>
<ul>
<li>本次更新优化了多线程 worker 的编译和代码加载的方式，从而支持了单步调试</li>
</ul>
<ol>
<li>公众号网页调试增加 url 收藏功能。</li>
<li>云开发套餐支持代金券支付。<br>等等。</li>
</ol>
<h1 id="小程序教程"><a href="#小程序教程" class="headerlink" title="小程序教程"></a>小程序教程</h1><h2 id="社区精选文章"><a href="#社区精选文章" class="headerlink" title="社区精选文章"></a>社区精选文章</h2><ul>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/000200eb844228d72f79291a651c13" target="_blank" rel="external">小程序多平台同构方案分析-kbone 与 remax</a></li>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/000c2279bf8f60f31d79854c85bc13" target="_blank" rel="external">做了一个颜色选择器</a></li>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/0004a20a114a28608669881bc5c013" target="_blank" rel="external">基于Kbone使用React同构小程序开发实践总结</a></li>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/0004686e3c8980b53469f176e51413" target="_blank" rel="external">使用 MobX 来管理小程序的跨页面数据</a></li>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/000e48820100100f2269be0975b813" target="_blank" rel="external">kbone，十分钟让 Vue 项目同时支持小程序</a></li>
<li><a href="https://developers.weixin.qq.com/community/develop/article/doc/00048e5ed784b037b959757385b413" target="_blank" rel="external">小程序顶部自定义导航组件实现原理及坑分享</a><br>往期内容可以查看<a href="https://developers.weixin.qq.com/community/develop/article" target="_blank" rel="external">文章分享</a>。</li>
</ul>
<h2 id="最新踩坑-amp-amp-Tips"><a href="#最新踩坑-amp-amp-Tips" class="headerlink" title="最新踩坑 &amp;&amp; Tips"></a>最新踩坑 &amp;&amp; Tips</h2><h3 id="【同步踩坑信息】-安卓7-0-8内测版本白屏问题"><a href="#【同步踩坑信息】-安卓7-0-8内测版本白屏问题" class="headerlink" title="【同步踩坑信息】- 安卓7.0.8内测版本白屏问题"></a>【同步踩坑信息】- 安卓7.0.8内测版本白屏问题</h3><p>该版本下做了内存优化，在页面不可见时回收渲染资源（也就是会白屏）。如果使用navigateBack了多层页面，这个路径下没有正确恢复第一个页面的渲染，会导致白屏。<br>目前小程序团队已修复该问题，后续遇到相似的问题可以往该方向考虑定位下。</p>
<h3 id="【同步踩坑信息】-安卓wx-getStorage"><a href="#【同步踩坑信息】-安卓wx-getStorage" class="headerlink" title="【同步踩坑信息】- 安卓wx.getStorage"></a>【同步踩坑信息】- 安卓wx.getStorage</h3><p>7.0.6开始，部分安卓手机，wx.getStorage会有意料外的回调发生。在获取缓存失败的情况下，可能不会回调fail，而是回调了success，且 res.data 是 undefined。</p>
<h3 id="【同步踩坑信息】-小程序换行会导致多余空格"><a href="#【同步踩坑信息】-小程序换行会导致多余空格" class="headerlink" title="【同步踩坑信息】- 小程序换行会导致多余空格"></a>【同步踩坑信息】- 小程序换行会导致多余空格</h3><p>一般使用编辑器开发，格式化会导致一些换行，在小程序里会导致多余空格，如图：<br><img src="https://github-imglib-1255459943.cos.ap-chengdu.myqcloud.com/wxapp-latest-20191015.png" alt=""></p>
<h3 id="【同步收集信息】-首页逻辑"><a href="#【同步收集信息】-首页逻辑" class="headerlink" title="【同步收集信息】- 首页逻辑"></a>【同步收集信息】- 首页逻辑</h3><p>微信7.0.7版本起，当用户打开的小程序最底层页面是非首页时，默认展示“返回首页”按钮。<br>开发者可在页面 onShow 中调用 hideHomeButton 进行隐藏。</p>
<ul>
<li>参考地址: <a href="https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html" target="_blank" rel="external">https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html</a></li>
</ul>
<h2 id="结束语"><a href="#结束语" class="headerlink" title="结束语"></a>结束语</h2><p>最近好像没什么好文好句，推荐几本好书吧~</p>
<ul>
<li>《数学之美》</li>
<li>《算法图解》</li>
<li>《清醒思考的艺术》</li>
</ul>
  
		
		<p style="margin-top:50px;">
			查看Github有更多内容噢：<a href="https://github.com/godbasin">https://github.com/godbasin</a>
			<br>
			更欢迎来<a href="https://godbasin.github.io/front-end-playground">被删的前端游乐场</a>边撸猫边学前端噢
		</p>
	</div>
	<img src="https://github-imglib-1255459943.cos.ap-chengdu.myqcloud.com/2code2.jpg" width="200" height="200" style="display:block;margin: 0 auto;" />
	<p style="text-align: center;margin-top: 10px;margin-bottom: 20px;">码生艰难，写文不易，给我家猪囤点猫粮了喵~</p>
	<div class="author-right">
  		<p>作者：被删</p>
  		<p>出处：<a href="https://godbasin.github.io">https://godbasin.github.io</a></p>
  		<p>本文版权归作者所有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。</p>
	</div>
		<footer class="article-footer clearfix">

  <div class="article-tags">
  
  <span></span> <a href="/tags/教程/">教程</a>
  </div>


<div class="article-categories">
  <span></span>
  <a class="article-category-link" href="/categories/小程序双皮奶/">小程序双皮奶</a>
</div>



<div class="article-share" id="share">

  
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style_24x24">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<a href="http://www.jiathis.com/share?uid=2134021" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript">
var jiathis_config = {data_track_clickback:'true'};
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=2134021" charset="utf-8"></script>
<!-- JiaThis Button END -->   


</div>
</footer>   	       
	</article>
	
<nav class="article-nav clearfix">
 

<div class="next">
<a href="/2019/11/10/change-log/"  title="前端 CHANGELOG 生成指南">
 <strong>NEXT:</strong><br/> 
 <span>前端 CHANGELOG 生成指南
</span>
</a>
</div>

</nav>

	<!-- 如果不是首页且没使用 `comments: false` 关闭评论，则尝试加载评论 -->

    <!-- 配置中启用多说时，导入相应代码 -->
    


</div>  
      <div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>

  <div id="toc" class="toc-aside">
  <strong class="toc-title">文章目录</strong>
  <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#小程序-latest"><span class="toc-number">1.</span> <span class="toc-text">小程序 latest</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#小程序能力"><span class="toc-number">1.1.</span> <span class="toc-text">小程序能力</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序·服务商订阅消息设置接口上线"><span class="toc-number">1.1.1.</span> <span class="toc-text">小程序·服务商订阅消息设置接口上线</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#同层渲染进度同步"><span class="toc-number">1.1.2.</span> <span class="toc-text">同层渲染进度同步</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序实时日志功能更新"><span class="toc-number">1.1.3.</span> <span class="toc-text">小程序实时日志功能更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#OCR-能力更新"><span class="toc-number">1.1.4.</span> <span class="toc-text">OCR 能力更新</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#更新日志"><span class="toc-number">1.1.5.</span> <span class="toc-text">更新日志</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#小程序·云开发"><span class="toc-number">1.2.</span> <span class="toc-text">小程序·云开发</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#小程序·云开发新增高级日志服务"><span class="toc-number">1.2.1.</span> <span class="toc-text">小程序·云开发新增高级日志服务</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#云开发代金券"><span class="toc-number">1.2.2.</span> <span class="toc-text">云开发代金券</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#云函数优化"><span class="toc-number">1.2.3.</span> <span class="toc-text">云函数优化</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开发者工具"><span class="toc-number">1.3.</span> <span class="toc-text">开发者工具</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#微信开发者工具新增文档搜索功能"><span class="toc-number">1.3.1.</span> <span class="toc-text">微信开发者工具新增文档搜索功能</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#更多更新说明"><span class="toc-number">1.3.2.</span> <span class="toc-text">更多更新说明</span></a></li></ol></li></ol></li><li class="toc-item toc-level-1"><a class="toc-link" href="#小程序教程"><span class="toc-number">2.</span> <span class="toc-text">小程序教程</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#社区精选文章"><span class="toc-number">2.1.</span> <span class="toc-text">社区精选文章</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#最新踩坑-amp-amp-Tips"><span class="toc-number">2.2.</span> <span class="toc-text">最新踩坑 && Tips</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-安卓7-0-8内测版本白屏问题"><span class="toc-number">2.2.1.</span> <span class="toc-text">【同步踩坑信息】- 安卓7.0.8内测版本白屏问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-安卓wx-getStorage"><span class="toc-number">2.2.2.</span> <span class="toc-text">【同步踩坑信息】- 安卓wx.getStorage</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步踩坑信息】-小程序换行会导致多余空格"><span class="toc-number">2.2.3.</span> <span class="toc-text">【同步踩坑信息】- 小程序换行会导致多余空格</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#【同步收集信息】-首页逻辑"><span class="toc-number">2.2.4.</span> <span class="toc-text">【同步收集信息】- 首页逻辑</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#结束语"><span class="toc-number">2.3.</span> <span class="toc-text">结束语</span></a></li></ol></li></ol>
  </div>

<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">

  	
	<div class="archiveslist">
		<p class="asidetitle">最近文章</p>
			<ul class="archive-list">
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/11/15/wxapp-latest-20191115/" title="小程序开发月刊第11期（20191115）">小程序开发月刊第11期（201911...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/11/10/change-log/" title="前端 CHANGELOG 生成指南">前端 CHANGELOG 生成指南...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/11/09/wxapp-global-data-behavior/" title="小程序的奇技淫巧 -- globalDataBehavior管理全局状态">小程序的奇技淫巧 -- global...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/10/15/wxapp-latest-20191015/" title="小程序开发月刊第十期（20191015）">小程序开发月刊第十期（2019101...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/10/13/about-front-end-3-growth/" title="前端这几年--3.关于成长和焦虑">前端这几年--3.关于成长和焦虑...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/09/16/wxapp-latest-20190916/" title="小程序开发月刊第九期（20190916）">小程序开发月刊第九期（2019091...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/08/15/wxapp-latest-20190815/" title="小程序开发月刊第八期（20190815）">小程序开发月刊第八期（2019081...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/07/27/front-end-playground/" title="被删的前端游乐场建成！">被删的前端游乐场建成！</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/07/21/vue-for-everyone-3/" title="9102全员学Vue--3.把页面拼成个Web应用">9102全员学Vue--3.把页面拼...</a>
				</li>
				
			
					
				<li class="archive-list-item">
					<a class="archive-list-link" href="/2019/07/15/wxapp-latest-20190715/" title="小程序开发月刊第七期（20190715）">小程序开发月刊第七期（2019071...</a>
				</li>
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
				
			
			</ul>
	</div>


  
  <div class="archiveslist">
    <p class="asidetitle"><a href="/archives">归档</a></p>
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/11/">十一月 2019</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/10/">十月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/09/">九月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/08/">八月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/07/">七月 2019</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/06/">六月 2019</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/05/">五月 2019</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/04/">四月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">三月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/02/">二月 2019</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/01/">一月 2019</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/12/">十二月 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/11/">十一月 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/10/">十月 2018</a><span class="archive-list-count">1</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/09/">九月 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/08/">八月 2018</a><span class="archive-list-count">2</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/07/">七月 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/06/">六月 2018</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/05/">五月 2018</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/04/">四月 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/03/">三月 2018</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/02/">二月 2018</a><span class="archive-list-count">4</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2018/01/">一月 2018</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/12/">十二月 2017</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/11/">十一月 2017</a><span class="archive-list-count">3</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">十月 2017</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">九月 2017</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">八月 2017</a><span class="archive-list-count">11</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">七月 2017</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/06/">六月 2017</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/">五月 2017</a><span class="archive-list-count">15</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/04/">四月 2017</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/03/">三月 2017</a><span class="archive-list-count">10</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/02/">二月 2017</a><span class="archive-list-count">41</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/01/">一月 2017</a><span class="archive-list-count">6</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">十二月 2016</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">十一月 2016</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">十月 2016</a><span class="archive-list-count">5</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/09/">九月 2016</a><span class="archive-list-count">7</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/">八月 2016</a><span class="archive-list-count">9</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">七月 2016</a><span class="archive-list-count">14</span></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/06/">六月 2016</a><span class="archive-list-count">9</span></li></ul>
  </div>


  
<div class="archiveslist">
	<p class="asidetitle"><a href="/categories">分类</a></p>
		<ul class="archive-list">
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/CSS炒饭/" title="CSS炒饭">CSS炒饭<sup>3</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/D3小馒头/" title="D3小馒头">D3小馒头<sup>8</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/angular2火锅/" title="angular2火锅">angular2火锅<sup>25</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/angular混搭/" title="angular混搭">angular混搭<sup>33</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/box2djs方糖/" title="box2djs方糖">box2djs方糖<sup>34</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/cyclejs哈根达斯/" title="cyclejs哈根达斯">cyclejs哈根达斯<sup>8</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/jQuery杂烩/" title="jQuery杂烩">jQuery杂烩<sup>3</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/js什锦/" title="js什锦">js什锦<sup>26</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/react沙拉/" title="react沙拉">react沙拉<sup>16</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/three-js奶茶/" title="three.js奶茶">three.js奶茶<sup>5</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/vue八宝粥/" title="vue八宝粥">vue八宝粥<sup>29</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/webpack宾治/" title="webpack宾治">webpack宾治<sup>9</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/web乱炖/" title="web乱炖">web乱炖<sup>2</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/前端满汉全席/" title="前端满汉全席">前端满汉全席<sup>8</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/喵/" title="喵">喵<sup>2</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/小程序双皮奶/" title="小程序双皮奶">小程序双皮奶<sup>27</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/工作这杯茶/" title="工作这杯茶">工作这杯茶<sup>5</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/应用巧克力盒/" title="应用巧克力盒">应用巧克力盒<sup>2</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/思想棉花糖/" title="思想棉花糖">思想棉花糖<sup>8</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/柴米油盐工具集/" title="柴米油盐工具集">柴米油盐工具集<sup>1</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/自动化甜筒/" title="自动化甜筒">自动化甜筒<sup>1</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/categories/非前端钙片/" title="非前端钙片">非前端钙片<sup>7</sup></a>
			</li>
		
		</ul>
</div>


  
<div class="archiveslist">
	<p class="asidetitle">标签</p>
		<ul class="archive-list">
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/分享/" title="分享">分享<sup>44</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/原创部件/" title="原创部件">原创部件<sup>1</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/心态/" title="心态">心态<sup>5</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/教程/" title="教程">教程<sup>73</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/晒猫/" title="晒猫">晒猫<sup>2</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/笔记/" title="笔记">笔记<sup>121</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/算法/" title="算法">算法<sup>9</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/自制插件/" title="自制插件">自制插件<sup>2</sup></a>
			</li>
		
			<li class="archive-list-item">
				<a class="archive-list-link" href="/tags/逻辑实现/" title="逻辑实现">逻辑实现<sup>5</sup></a>
			</li>
		
		</ul>
</div>


    <div class="archiveslist">
    <p class="asidetitle"><a href="/archives">about</a></p>
      <ul class="archive-list">
      	<li class="archive-list-item">
      		<a>wangbeishan@163.com</a>
      		<a href="https://github.com/godbasin">github.com/godbasin</a>
      	</li>
      </ul>
  </div>

  <div class="rsspart">
	<a href="/atom.xml" target="_blank" title="rss">RSS 订阅</a>
</div>

</aside>
</div>
    </div>
    <footer><div id="footer" >
	
	<section class="info">
		<p> 即使梦想再小，却很伟大 ^_^ </p>
	</section>
	 
		<p class="copyright">Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/A-limon/pacman" target="_blank" title="Pacman">Pacman</a> © 2019 
		
		<a href="https://godbasin.github.io" target="_blank" title="被删">被删</a>
		
		</p>
</div>
</footer>
    <script src="/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else
    {
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
      
      $('#toc.toc-aside').css('display', 'none');
        
    }
  });
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
});
</script>

<script type="text/javascript">
$(document).ready(function(){ 
  var ai = $('.article-content>iframe'),
      ae = $('.article-content>embed'),
      t  = $('#toc'),
      h  = $('article h2')
      ah = $('article h2'),
      ta = $('#toc.toc-aside'),
      o  = $('.openaside'),
      c  = $('.closeaside');
  if(ai.length>0){
    ai.wrap('<div class="video-container" />');
  };
  if(ae.length>0){
   ae.wrap('<div class="video-container" />');
  };
  if(ah.length==0){
    t.css('display','none');
  }else{
    c.click(function(){
      ta.css('display', 'block').addClass('fadeIn');
    });
    o.click(function(){
      ta.css('display', 'none');
    });
    $(window).scroll(function(){
      ta.css("top",Math.max(140,320-$(this).scrollTop()));
    });
  };
});
</script>







  </body>
</html>
